
<#include "header.ftl">
  <!-- 内容区域 -->
<div class="tpl-content-wrapper">
 <div class="container-fluid am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <ol class="am-breadcrumb">
						  <li><a href="${Domain}my" class="am-icon-home">首页</a></li>
						  <li class="am-active">医疗</li>
						  <li class="am-active">就诊科室</li>
						</ol>
                    </div>
                  	<#include "../common/return.ftl">
                </div>
  </div>
       <div class="row-content am-cf">
                <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-fl"><span class="iask-icon-caozuorizhi iconfont sidebar-nav-link-logo"></span>就诊科室</div>
								<div class="widget-function am-fr">
								<#if user.role==1>
                                    <a href="${Domain}my/disease/departmentadd?url=${url}" class="am-icon-plus"    data-am-popover="{theme: 'success sm',content: '新增科室', trigger: 'hover focus'}"></a>
                               	</#if>
                                </div>
                            </div>
                            <div class="widget-body  am-fr">

                                <div class="am-u-sm-12">
                                
                                
                                
                                <div class="am-scrollable-horizontal">
                                
                                    <table width="100%" class="<#include "../common/table-class.ftl">"  >
                                        <thead>
                                            <tr>
                                                <th width="80px">编号</th>
                                                <th>名称</th>
                                          
                                              <th width="120px">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <#list page.list as item>
                                            <tr >
                                                 <td>${item.id}</td>
                                                <td>${item.name}</td>                                        
                                                <td>
                                              	<#if user.role==1||user.role==2>
                                                    <div class="tpl-table-black-operation">
                                                        <a href="${Domain}my/disease/departmentupdate/${item.id}?url=${url}">
                                                            <i class="am-icon-pencil"></i> 编辑
                                                        </a>
                                                    </div>
                                                  <#else>
                                                  		<span>(已锁定)</span>
                                                 
                                                 </#if>
                                                </td>
                                            </tr>
                                            </#list>
                                        </tbody>
                                    </table>
                                    </div>
                                </div>
                              
                               <#include "../common/page.ftl">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        
 </div>     
 
    
<#include "footer.ftl">